package com.zbec.mdrs.entity.entrustedLoan;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zbec.mdrs.entity.RecordEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by fxl on 2015/10/17.
 */
@Entity
@Table(name = "tb_entrusted_loan")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class EntrustedLoan extends RecordEntity implements Serializable {

    private String sjsj;//数据年月
    private String jrjgbm;//金融机构编码
    private String wtrzzjgdm;//委托人组织机构代码
    private String jkrzzjgdm;//借款人组织结构代码
    private String bz;//币种
    private BigDecimal ll;//利率
    private BigDecimal ywfse;//业务发生额
    private BigDecimal ywye;//业务余额
    private Date dkffrq;//贷款发放日期
    private Date dkdqrq;//贷款到期日期
    private String jjh;//借据号
    private String qymc;//企业名称

    private String detail;

    private String dkkbm;//贷款卡编号
    public String getDkkbm() {
        return dkkbm;
    }

    public void setDkkbm(String dkkbm) {
        this.dkkbm = dkkbm;
    }

    public String getSjsj() {
        return sjsj;
    }

    public void setSjsj(String sjsj) {
        this.sjsj = sjsj;
    }

    public String getJrjgbm() {
        return jrjgbm;
    }

    public void setJrjgbm(String jrjgbm) {
        this.jrjgbm = jrjgbm;
    }

    public String getWtrzzjgdm() {
        return wtrzzjgdm;
    }

    public void setWtrzzjgdm(String wtrzzjgdm) {
        this.wtrzzjgdm = wtrzzjgdm;
    }

    public String getJkrzzjgdm() {
        return jkrzzjgdm;
    }

    public void setJkrzzjgdm(String jkrzzjgdm) {
        this.jkrzzjgdm = jkrzzjgdm;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public BigDecimal getLl() {
        return ll;
    }

    public void setLl(BigDecimal ll) {
        this.ll = ll;
    }

    public BigDecimal getYwfse() {
        return ywfse;
    }

    public void setYwfse(BigDecimal ywfse) {
        this.ywfse = ywfse;
    }

    public BigDecimal getYwye() {
        return ywye;
    }

    public void setYwye(BigDecimal ywye) {
        this.ywye = ywye;
    }

    public Date getDkffrq() {
        return dkffrq;
    }

    public void setDkffrq(Date dkffrq) {
        this.dkffrq = dkffrq;
    }

    public Date getDkdqrq() {
        return dkdqrq;
    }

    public void setDkdqrq(Date dkdqrq) {
        this.dkdqrq = dkdqrq;
    }

    public String getJjh() {
        return jjh;
    }

    public void setJjh(String jjh) {
        this.jjh = jjh;
    }

    public String getQymc() {
        return qymc;
    }

    public void setQymc(String qymc) {
        this.qymc = qymc;
    }

    @Transient
    public String getDetail() {
        this.detail=" tb_entrusted_loan RecordId : "+this.recordId+" 委托人组织机构代码 : "+this.wtrzzjgdm
                +" jkrzzjgdm : "+this.jkrzzjgdm;
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
